$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .jx {
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
    width: 100%;
    text-align: right;

    img {
      max-width: 100%;
    }
  }

  .title {
    width: 80vw;
    margin: 0 auto 3vw auto;
    padding-top: 10vw;
    .cn {
      color: #111;
      font-size: $fontSize_64;
      font-weight: 600;
    }

    .en {
      font-family: 'Montserrat-Regular';
      color: rgba(224, 28, 28, 1);
      font-size: $fontSize_28;
      font-weight: 600;
      margin-top: 10px;
    }
  }
  .title2{
    padding-top: 0;
  }

  .section1 {
    width: 80vw;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;

    a {
      color: #111;
      font-size: $fontSize_14;
    }

    span {
      width: 8px;
      height: 2px;
      background-color: rgba(224, 28, 28, 1);
      margin: 0 1vw;
    }

    p {
      color: #666;
      font-size: $fontSize_14;
    }
  }

  .section2 {
    width: 100%;
    margin: 2vw 0;
    position: relative;

    .bg {
      img {
        width: 100%;
        display: block;
        object-fit: cover;
      }
    }

    .shadow {
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;

      img {
        width: 100%;
      }
    }
  }

  .section3{
    padding: 60/$f+vw 0 100/$f+vw 0;
    .wrap{
        width: 1535/$f+vw;
        margin: auto;
        .title{
            h1{
                font-size: 64/$f+vw;
                color: #111;
                margin: 0 0 10/$f+vw;
            }
            p{
                font-size: 28/$f+vw;
                color: #E01C1C;
                font-weight: bold;
                font-family: 'Montserrat-Regular';
            }
        }
        .side{
            display: flex;
            flex-wrap: wrap;
            border-bottom: 1px solid #DDD;
            position: sticky;
            top: 88px;
            z-index: 99;
            background: #fff;
            .list{
                width: 16.666666%;
                height: 60/$f+vw;
                border: 1px solid #DDD;
                border-bottom: none;
                border-right: none;
                display: flex;
                align-items: center;
                padding: 0 0 0 20/$f+vw;
                box-sizing: border-box;
                cursor: pointer;
                &:nth-child(6n) {
                    border-right: 1px solid #DDD;
                }
                img{
                    width: 13/$f+vw;
                    margin: 0 10/$f+vw 0 0;
                    opacity: 0;
                    transition: .6s;
                }
                p{
                    font-size: 16/$f+vw;
                    color: #333;
                    transform: translateX(-20/$f+vw);
                    transition: .6s;
                }
                &.on{
                    img{
                        opacity: 1;
                    }
                    p{
                        transform: translateX(0);
                        opacity: 1;
                    }
                }
            }
        }

        .content{
           
            margin: 59/$f+vw 0 0 0;
            @keyframes y {
              0%{
                transform: translateY(20px);
                opacity: 0;
              }
              100%{
                opacity: 1;
                transform: translateY(0);
              }
            }
            .matter{
              display: none;
              grid-template-columns: repeat(5,1fr);
              gap: 29/$f+vw 32/$f+vw;
              &.on{
                display: grid;
                animation: .6s y linear forwards;
              }
              .item{
                height: 279/$f+vw;
                background: lightgray;
                border-radius: 26/$f+vw;
                overflow: hidden;
                position: relative;
                border: 3/$f+vw solid transparent;
                background: #F2F2F2;
                transition: .6s;
                &::after{
                    content: '';
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 100%;
                    height: 116/$f+vw;
                    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%);
                    transition: .6s;
                }
                &::before{
                    content: '';
                    position: absolute;
                    width: 100%;
                    height: 116/$f+vw;
                    bottom: 0;
                    left: 0;
                    background: linear-gradient(180deg, rgba(221, 32, 22, 0.00) 0%, rgba(224, 28, 28, 0.41) 100%);
                    z-index: 1;
                    opacity: 0;
                    transition: .6s;
                }
                .position{
                    position: absolute;
                    bottom: 30/$f+vw;
                    left: 12/$f+vw;
                    z-index: 5;
                    h1{
                        color: #FFF;
                        font-size: 26.4/$f+vw;
                        font-weight: 700;
                        line-height: 34.32/$f+vw; /* 130% */
                        margin: 0 0 8/$f+vw;
                    }
                    .lable{
                        width: fit-content;
                        border-radius: 4/$f+vw;
                        border: 0.3px solid #FFF;
                        background: rgba(255, 255, 255, 0.20);
                        backdrop-filter: blur(10px);
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        padding: 0 4/$f+vw;
                        color: #fff;
                        margin: 0 0 8.5/$f+vw;
                        font-size: 8/$f+vw;
                        height: 15/$f+vw;
                    }
                    .pick{
                        display: flex;
                        align-items: center;
                        .red{
                            width: 4.8/$f+vw;
                            height: 4.8/$f+vw;
                            border-radius: 2/$f+vw;
                            background: #E01C1C;
                            margin: 0 5/$f+vw 0 0;
                        }
                        p{
                            color: #FFF;
                            font-size: 9/$f+vw;
                            font-style: normal;
                            font-weight: 400;
                            letter-spacing: 0.6px;
                        }
                    }
                }

                &:hover{
                    border: 3/$f+vw solid #FF5B5B;
                    background: #F2F2F2;
                    &::after{
                        opacity: 0;
                    }
                    &::before{
                        opacity: 1;
                    }
                }
            }
            }
           
        }

        .more{
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 82/$f+vw auto 0;
            width: fit-content;
            p{
                font-size: 16/$f+vw;
                color: #E01C1C;
                margin: 0 6px 0 0;
                font-weight: bold;
            }
            .add{
                width: 13/$f+vw;
                height: 13/$f+vw;
                position: relative;
                &::after{
                    content: '';
                    position: absolute;
                    width: 100%;
                    height: 1px;
                    background: #E01C1C;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%,-50%);
                }
                &::before{
                    content: '';
                    position: absolute;
                    width: 1px;
                    height: 100%;
                    background: #E01C1C;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%,-50%);
                }
            }
        }
    }
  }

  .section7 {
    width: 100%;
    display: flex;
    justify-content: space-between;

    .item {
      width: 50%;
      position: relative;

      .bg {
        overflow: hidden;
        height: 100%;
        img {
          width: 100%;
          display: block;
          object-fit: cover;
          transition: all 600ms;
          height: 100%;
          transform: scale(1.01);
        }
      }

      .text {
        position: absolute;
        left: 10vw;
        top: 50%;
        transform: translateY(-50%);
        color: white;

        .p1 {
          color: #FFF;
          font-size: $fontSize_54;
          font-weight: 700;
        }

        .p2 {
          color: #FFF;
          font-size: $fontSize_22;
          font-weight: 700;
        }
      }

      .btn {
        position: absolute;
        right: 5%;
        bottom: 5%;
        border: 2px solid white;
        width: fit-content;
        padding: 0.3vw 1.8vw;
        border-radius: 30px;
        transition: all 600ms;

        svg {
          display: block;
          transition: all 600ms;
        }

        &:hover {
          background-color: rgba(224, 28, 28, 1);
          border-color: rgba(224, 28, 28, 1);

          svg {
            transform: translateX(10px);
          }
        }
      }

      &:hover {
        .bg {
          img {
            transform: scale(1.05);
          }
        }
      }
    }
  }


  @media screen and (max-width: 1024px) {
    padding-top: 70px;
    .title{
      width: 90%;
      padding-top: 20px;
      .cn{
        font-size: 24px;
      }
      .en{
        font-size: 18px;
      }
    }

    .section1{
        width: 90%;
        a,p{
          font-size: 14px;
        }
      }

      .section3{
          padding: 0 0 40px 0 ;
          .wrap{
            width: 90%;
            .title{
              padding: 0;
              margin: 0 0 20px;
              h1{
                font-size: 24px;
                margin: 0 0 10px;
              }
              p{
                font-size: 18px;
              }
            }
            .side{
              top: 80px;
              position: static;
              .list{
                width: 50%;
                height: 45px;
                padding: 0 0 0 15px;
                &:nth-child(2n) {
                  border-right: 1px solid #DDD;
                }
                img{
                  width: 10px;
                  margin: 0 15px 0 0;
                }
                p{
                  font-size: 14px;
                }
              }
            }
            .content{
              margin: 25px 0 0 0;
              .matter{
                grid-template-columns: repeat(1, 1fr);
                gap: 20px;
                .item{
                  height: auto;
                  border-radius: 20px;
                  .img{
                    width: 100%;
                  }
                  &::after{
                    height: 40%;
                  }
                  &::before{
                    height: 40%;
                  }
                  .position{
                    left: 5%;
                    bottom: 20px;
                    h1{
                      font-size: 24px;
                      line-height: 1;
                      margin: 0 0 15px;
                    }
                    .lable{
                      border-radius: 5px;
                      padding: 5px 10px;
                      height: auto;
                      margin: 0 0 5px;
                      font-size: 14px;
                    }
                    .pick p{
                      font-size: 16px;
                      line-height: 2;
                    }
                  }
                }
              }
            }

            .more{
              margin: 20px auto 0;
              p{
                font-size: 16px;
              }
              .add{
                width: 15px;
                height: 15px;
              }
            }
          }
      }

      .section7{
        flex-direction: column;
        .item{
          width: 100%;
          .text{
            left: 5%;
            .p1{
              font-size: 20px;
            }
            .p2{
              font-size: 16px;
            }
          }
          .btn{
            padding: 5px 25px;
            bottom: 20px;
          }
        }
      }

      .section2{
        margin: 15px 0;
      }
    
  }
  
}